class CustomFailure < Devise::FailureApp
  def redirect_url
    if warden_options[:scope] == :admin
      new_admin_session_path
    else
      new_user_session_path
    end
  end
  def respond
    redirect
  end
end
